<?php

;//require_once 'Base/NewsShortRow.php';

/**
 * Generated Model class.
 */
class NewsShortRow extends Base_NewsShortRow implements IContentListElementProvider 
{
	public function getContentListElement($type = null)
	{
		$element = new List_NewsShort();
		$element->setText($this->getText());
		
		$profileRow = $this->getProfileRowByProfileId();
		if ($profileRow) {
			$element->setProfileName($profileRow->getFirstName());
			$element->setProfileUrl('#');
		}
		$element->setDate($this->getDate());
		return $element; 
	}

}

